              <?php
                  include "BaseClass/dbhelper.class.php";
	          date_default_timezone_set("prc");
                   
                    $time=date('Y-m-d H:i:s',time());
                    $name=$_POST[xing];
                    $email=$_POST[email];		   
                    $content=$_POST[message];
                    mysql_query ( "set names gbk" );
                    $db=new DBhelper();
                    $db->connectDB();
                    $sql="INSERT INTO liuyan (name,email,content,times)VALUES('{$name}','{$email}','{$content}','{$time}')";	
                    $res=$db->ExecuteDML($sql);
                    if($res)
                     {
                       header("location:resource.php?sucess=4");
                     } 
             ?>
             
